/**
 * Copyright (c) 2010 Axa Holding Belgium, SA. All rights reserved.
 * This software is the confidential and proprietary information of the AXA Group.
 */
package chabernac.tools;

import java.util.List;

public class HeaderTools {
  public static String findHeader(List<String> aHeaderList, String aName){
    aName = aName.trim();
    if(!aName.endsWith( ":" )){
      aName  = aName + ":";
    }
    for(String theHeader : aHeaderList){
      if(theHeader.toUpperCase().startsWith( aName.toUpperCase() )){
        return theHeader.substring( aName.length() ).trim();
      }
    }
    return null;
  }
}
